﻿namespace Sharp.Platform.Mvc.Attribute
{
    /// <summary>
    /// 显示字段和值字段的配置
    /// </summary>
    public class DisplayValueFieldAttribute : System.Attribute
    {
        public DisplayValueFieldAttribute(string field)
        {
            DisplayField = field;
            ValueField = field;
        }
        public DisplayValueFieldAttribute(string displayField, string valueField)
        {
            DisplayField = displayField;
            ValueField = valueField;
        }
        public string DisplayField { get; set; }
        public string ValueField { get; set; }
    }
}
